﻿using DomainModel;
using FluentNHibernate.Mapping;

namespace Repository.NHibernate.Mapping
{
    public class LessonMap : ClassMap<Lesson>
    {
        public LessonMap()
        {
            Id(x => x.Id).GeneratedBy.Native();
            Map(x => x.Date);
            References(x => x.Student);
            References(x => x.Timetable);
            References(x => x.WorkType);
            References(x => x.Mark);
        }
    }
}